﻿<phone:PhoneApplicationPage 
    x:Class="WakeApp.ModificaSveglia"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" shell:SystemTray.IsVisible="True" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" Loaded="PhoneApplicationPage_Loaded" d:DesignHeight="768" d:DesignWidth="480">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="None" ImageSource="bg-sveglia.jpg"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0" Width="480" Height="130">
        	<StackPanel.Background>
        		<ImageBrush Stretch="None" ImageSource="title-WakeApp.png"/>
        	</StackPanel.Background>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,12">
            <toolkit:TimePicker Margin="146,97,146,0" Name="Sveglia" VerticalAlignment="Top" Height="86" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" Background="#BFFFFFFF">
            	<toolkit:TimePicker.RenderTransform>
            		<CompositeTransform ScaleX="2" ScaleY="2"/>
            	</toolkit:TimePicker.RenderTransform>
            </toolkit:TimePicker>
            <ToggleButton Margin="-3,256,382,293" Name="Lun" Checked="Lun_Checked" Width="77" Unchecked="Lun_Unchecked" BorderBrush="{x:Null}" RenderTransformOrigin="0,0" />
            <ToggleButton HorizontalAlignment="Left" Margin="61,256,0,293" Name="Mar" Width="77" Checked="Mar_Checked" Unchecked="Mar_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="125,256,0,293" Name="Mer" Width="77" Checked="Mer_Checked" Unchecked="Mer_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="189,256,0,293" Name="Gio" Width="77" Checked="Gio_Checked" Unchecked="Gio_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="253,256,0,293" Name="Ven" Width="77" Checked="Ven_Checked" Unchecked="Ven_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="317,256,0,293" Name="Sab" Width="77" Checked="Sab_Checked" Unchecked="Sab_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="382,256,0,293" Name="Dom" Width="77" Checked="Dom_Checked" Unchecked="Dom_Unchecked" BorderBrush="{x:Null}"/>
            
            <Button Name="ButtonSave" Content="Save" Height="110" Margin="117,0,0,8" VerticalAlignment="Bottom" BorderThickness="0" Width="110" Foreground="{x:Null}" HorizontalAlignment="Left" d:LayoutOverrides="Width" Click="ButtonSave_Click">
            	<Button.Background>
            		<ImageBrush Stretch="None" ImageSource="icona-salva.png"/>
            	</Button.Background>
            </Button>
            <Button Name="ButtonDelete"  Content="Delete" Height="110" Margin="227,0,119,8" VerticalAlignment="Bottom" BorderThickness="0" Width="110" Foreground="{x:Null}" Click="ButtonDelete_Click">
            	<Button.Background>
            		<ImageBrush Stretch="None" ImageSource="icona-togli.png"/>
            	</Button.Background>
            </Button>
            <TextBlock HorizontalAlignment="Left" Margin="9,0,0,233" Text="Mon" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="73,0,0,233" Text="Tus" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="137,0,0,233" Text="Wed" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="201,0,0,233" Text="Thu" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="264,0,0,233" Text="Fri" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="328,0,0,233" Text="Sat" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="393,0,0,233" Text="Sun" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Set" Click="ApplicationBarIconButton_ClickSet"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Delete" Click="ApplicationBarIconButton_ClickDelete"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar-->

</phone:PhoneApplicationPage>
